<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>
    .font-bold {
        font-size: 14px;
        margin: 20px 0;
    }

    tr {
        border: 1px solid #999
    }

    td {
        padding: 10px;
        border-right: 1px solid #999
    }
</style>
<body class="gray-bg">
    <div class="row">
        <div class="col-sm-5">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                        <input id="id" name="id" th:value="${trainInfo.id}"  type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">企业名称：</label>
                            <div class="col-sm-8">
                                <input id="enterpriseName" name="enterpriseName" disabled="disabled" th:value="${trainInfo.enterpriseName}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">营业执照网络路径：</label>
                            <div class="col-sm-8">
                                <input id="enterpriseFile" name="enterpriseFile" disabled="disabled" th:value="${trainInfo.enterpriseFile}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">企业地址：</label>
                            <div class="col-sm-8">
                                <input id="enterpriseAddress" name="enterpriseAddress" disabled="disabled" th:value="${trainInfo.enterpriseAddress}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">省份：</label>
                            <div class="col-sm-8">
                                <input id="province" name="province" disabled="disabled" th:value="${trainInfo.province}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">法人代表：</label>
                            <div class="col-sm-8">
                                <input id="enterprisePerson" name="enterprisePerson" disabled="disabled" th:value="${trainInfo.enterprisePerson}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">联系人：</label>
                            <div class="col-sm-8">
                                <input id="contacts" name="contacts" disabled="disabled" th:value="${trainInfo.contacts}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">职务：</label>
                            <div class="col-sm-8">
                                <input id="posts" name="posts" disabled="disabled" th:value="${trainInfo.posts}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">联系电话：</label>
                            <div class="col-sm-8">
                                <input id="phone" name="phone" disabled="disabled" th:value="${trainInfo.phone}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">营业范围：</label>
                            <div class="col-sm-8">
                                <input id="businessScope" disabled="disabled" name="businessScope" th:value="${trainInfo.businessScope}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">基本情况说明：</label>
                            <div class="col-sm-8">
                                <input id="basicInfoExplain" disabled="disabled" name="basicInfoExplain" th:value="${trainInfo.basicInfoExplain}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">基本情况网络路径：</label>
                            <div class="col-sm-8">
                                <input id="basicInfoFile" disabled="disabled" name="basicInfoFile" th:value="${trainInfo.basicInfoFile}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">考核评价说明：</label>
                            <div class="col-sm-8">
                                <input id="assevaInfoExplain" disabled="disabled" name="assevaInfoExplain" th:value="${trainInfo.assevaInfoExplain}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">考核评价网络路径：</label>
                            <div class="col-sm-8">
                                <input id="assevaInfoFile" disabled="disabled" name="assevaInfoFile" th:value="${trainInfo.assevaInfoFile}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">培训情况：</label>
                            <div class="col-sm-8">
                                <input id="trainInfo" disabled="disabled" name="trainInfo" th:value="${trainInfo.trainInfo}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">培训情况网络路径：</label>
                            <div class="col-sm-8">
                                <input id="trainFile" disabled="disabled" name="trainFile" th:value="${trainInfo.trainFile}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">实习情况：</label>
                            <div class="col-sm-8">
                                <input id="internshipInfo" disabled="disabled" name="internshipInfo" th:value="${trainInfo.internshipInfo}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">实习情况网络路径：</label>
                            <div class="col-sm-8">
                                <input id="internshipFile" disabled="disabled" name="internshipFile" th:value="${trainInfo.internshipFile}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">校企合作说明：</label>
                            <div class="col-sm-8">
                                <input id="schoolEnterpriseInfo" disabled="disabled" name="schoolEnterpriseInfo" th:value="${trainInfo.schoolEnterpriseInfo}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">校企合作网络路径：</label>
                            <div class="col-sm-8">
                                <input id="schoolEnterpriseFile" disabled="disabled" name="schoolEnterpriseFile" th:value="${trainInfo.schoolEnterpriseFile}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">设备说明：</label>
                            <div class="col-sm-8">
                                <input id="equipmentInfo" disabled="disabled" name="equipmentInfo" th:value="${trainInfo.equipmentInfo}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">设备网络路径：</label>
                            <div class="col-sm-8">
                                <input id="equipmentFile" disabled="disabled" name="equipmentFile" th:value="${trainInfo.equipmentFile}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">评价说明：</label>
                            <div class="col-sm-8">
                                <input id="assessmentInfo" disabled="disabled" name="assessmentInfo" th:value="${trainInfo.assessmentInfo}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">评价网络路径：</label>
                            <div class="col-sm-8">
                                <input id="assessmentFile" disabled="disabled" name="assessmentFile" th:value="${trainInfo.assessmentFile}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">创建时间：</label>
                            <div class="col-sm-8">
                                <input id="createTime" disabled="disabled" name="createTime" th:value="${trainInfo.createTime} eq null ? '' : ${#dates.format(trainInfo.createTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">修改时间：</label>
                            <div class="col-sm-8">
                                <input id="updateTime" disabled="disabled" name="updateTime" th:value="${trainInfo.updateTime} eq null ? '' : ${#dates.format(trainInfo.updateTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">审核时间：</label>
                            <div class="col-sm-8">
                                <input id="examineTime" disabled="disabled" name="examineTime" th:value="${trainInfo.examineTime}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">状态：</label>
                            <div class="col-sm-8">
                                <label th:if="${trainInfo.state==0}">正常</label>
                                <label th:if="${trainInfo.state==1}">已删除</label>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">申请状态   ：</label>
                            <div class="col-sm-8">
                                <label th:if="${trainInfo.type==0}">草稿</label>
                                <label th:if="${trainInfo.type==1}">待审核</label>
                                <label th:if="${trainInfo.type==2}">审核通过</label>
                                <label th:if="${trainInfo.type==3}">审核不通过</label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">审核备注：</label>
                            <div class="col-sm-8">
                                <input id="examineRemarks" disabled="disabled" name="examineRemarks" th:value="${trainInfo.examineRemarks}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">申请人：</label>
                            <div class="col-sm-8">
                                <input id="createUser" disabled="disabled" name="createUser" th:value="${trainInfo.createUserName}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">审核人：</label>
                            <div class="col-sm-8">
                                <input id="examineUser" disabled="disabled" name="examineUser" th:value="${trainInfo.examineUserName}" class="form-control" type="text">
                            </div>
                        </div>

                </div>
            </div>
        </div>
        <div class="col-sm-7">
            <div class="wrapper wrapper-content animated fadeInUp">
            <p class=" font-bold">
                <span><i class="fa fa-circle text-success"></i>
                     管理团队：
                       <input id="adminTeam" type="hidden" th:value="${trainInfo.adminTeam}"/>
            <table id="equipment"></table>
            </span>
            </p>

                <p class=" font-bold">
                <span><i class="fa fa-circle text-success"></i>

                     合作企业：
                       <input id="expertTeam" type="hidden" th:value="${trainInfo.expertTeam}"/>
                <table id="expertTeam1"></table>
                </span>
                </p>

                <p class=" font-bold">
                <span><i class="fa fa-circle text-success"></i>
                     专家团队：
                       <input id="cooperationEnterprise" type="hidden" th:value="${trainInfo.cooperationEnterprise}"/>
                <table id="expertTeam2"></table>
                </span>
                </p>

                <p class=" font-bold">
                <span><i class="fa fa-circle text-success"></i>
                        管理团队场地说明：<label
                            th:text="${trainInfo.adminWorkSpace}"></label>
                </span>
                </p>

                <p class=" font-bold">
                <span><i class="fa fa-circle text-success"></i>
                        管理团队场地说明文件：
                    <a style="width: 200px" download th:href="${trainInfo.adminWorkSpaceFile}">下载</a>
                </span>
                </p>

            </div>


        </div>
</div>
<div th:include="include::footer"></div>
<script>
    //管理团队
    adminTeam();
    //专家团队
    expertTeam();
    //合作企业团队
    cooperationEnterprise();

    //管理团队
    function adminTeam() {
        var teamTxt = JSON.parse($("#adminTeam").val());
        var a = '<tr><td>序号</td><td>名称</td><td>学历</td><td>学历附件地址</td><td>职务</td><td>联系电话</td><td>工作职责</td><td>人员类型</td></tr>';

        for (var i = 0; i < teamTxt.length; i++) {
            a += '<tr><td>' + parseInt(i + 1) + '</td><td>' + teamTxt[i].adminName + '</td><td>' + teamTxt[i].education + '</td><td>'+'<a target="_blank" style="color: blue" download href="'+teamTxt[i].educationFile+'">'+'下载</a>'+'</td><td>' + teamTxt[i].position + '</td>' +
                '<td>' + teamTxt[i].adminMobile + '</td><td>' + teamTxt[i].adminWork + '</td> <td>' + teamTxt[i].adminType + '</td></tr>'
        }
        $("#equipment").html(a)
    }
    //合作企业团队
    function expertTeam() {
        var teamTxt = JSON.parse($("#cooperationEnterprise").val());
        var a = '<tr><td>序号</td><td>企业名称</td><td>企业地址</td><td>主营业务</td><td>经营范围</td><td>联系人</td><td>联系电话</td></tr>';
        for (var i = 0; i < teamTxt.length; i++) {
            a += '<tr><td>' + parseInt(i + 1) + '</td><td>' + teamTxt[i].enterpriseName + '</td><td>' + teamTxt[i].enterpriseAddress + '</td>' +
                '<td>' + teamTxt[i].serviceMain + '</td><td>' + teamTxt[i].enterprisePerson + '</td><td>' + teamTxt[i].contactName + '</td><td>' + teamTxt[i].contactMobile + '</td></tr>'
        }
        $("#expertTeam1").html(a)
    }
    //专家团队
    function cooperationEnterprise() {
        var teamTxt = JSON.parse($("#expertTeam").val());
        var a = '<tr><td>序号</td><td>姓名</td><td>学历</td><td>学历附件地址</td><td>职务</td><td>职称</td><td>专家类型</td><td>专家证明材料</td><td>证书编号</td><td>联系电话</td><td>工作职责</td></tr>';
        for (var i = 0; i < teamTxt.length; i++) {
            a += '<tr><td>' + parseInt(i + 1) + '</td><td>' + teamTxt[i].expertName + '</td><td>' + teamTxt[i].expertEducation + '</td><td>'+'<a target="_blank" style="color: blue" download href="'+teamTxt[i].expertEducationFile+'">'+'下载</a>'+'</td><td>' + teamTxt[i].expertPosition + '</td>' +
                '<td>' + teamTxt[i].expertJobName + '</td><td>' + teamTxt[i].expertType + '</td><td>'+'<a target="_blank" style="color: blue" download href="'+teamTxt[i].expertCertificatesFile+'">'+'下载</a>'+'</td><td>' + teamTxt[i].expertNum + '</td><td>' + teamTxt[i].expertMobile + '</td><td>' + teamTxt[i].expertWork + '</td></tr>'
        }
        $("#expertTeam2").html(a)
    }


</script>

</body>
</html>
